<head>
    <title><span jwcid="@Insert" value="message:userList.title"/></title>
    <content tag="heading"><span key="userList.heading"/></content>
    <meta name="menu" content="AdminMenu"/>
</head>

<span jwcid="@ShowMessage"/>

<p>
    <input type="button" class="button" onclick="location.href='userForm.html'" jwcid="@Any" value="message:button.add"/>
    <input type="button" class="button" onclick="location.href='mainMenu.html'" jwcid="@Any" value="message:button.done"/>
</p>

<table jwcid="table@contrib:Table" class="table contribTable" id="userList"
    rowsClass="ognl:beans.evenOdd.next" row="ognl:row" 
    columns="user.username:username, activeUsers.fullName:fullName, user.email:email, user.enabled:enabled"
    source="ognl:users" initialSortColumn="username"
    arrowUpAsset="ognl:assets.upArrow" arrowDownAsset="ognl:assets.downArrow">
    <tr jwcid="user_usernameColumnValue@Block">
        <a jwcid="@DirectLink" listener="ognl:listeners.edit" parameters="ognl:row.username">
            <span jwcid="@Insert" value="ognl:row.username"/>
        </a>
    </tr>
    <tr jwcid="user_emailColumnValue@Block">
        <a jwcid="@Any" href="ognl:+'mailto:'+row.email">
            <span jwcid="@Insert" value="ognl:row.email"/>
        </a>
    </tr>
    <tr jwcid="user_enabledColumnValue@Block">
        <span jwcid="@If" condition="ognl:row.enabled == true"><input type="checkbox" disabled="disabled" checked="checked" style="margin-left: 15px"/></span>
        <span jwcid="@Else"><input type="checkbox" disabled="disabled" style="margin-left: 15px"/></span>
    </tr>
</table>

<input type="button" class="button" onclick="location.href='userForm.html'" jwcid="@Any" value="message:button.add"/>
<input type="button" class="button" onclick="location.href='mainMenu.html'" jwcid="@Any" value="message:button.done"/>

<script type="text/javascript">
    highlightTableRows("userList");
</script>
